package com.li.springbootproject.config.datasource;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author LiDong
 * @version 1.0.0
 * @className DruidConfig.java
 * @createTime 2021年06月07日 20:46:00
 */
@Configuration
public class DruidConfig {

    @Bean
    @ConfigurationProperties("spring.datasource.druid.master")
    public DruidDataSource dataSource(){
        return new DruidDataSource();
    }
}
